package cn.njxzc.examples;

import java.io.SequenceInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Exam9_15 {
	public static void main(String[] args) throws IOException {
		FilesList files = new FilesList(args);
		SequenceInputStream in = new SequenceInputStream(files);
		BufferedReader buffer = new BufferedReader(new InputStreamReader(in));
		String str;
		while ((str = buffer.readLine()) != null)
			System.out.println(str);

		buffer.close();
	}
}
